package com.graduate.bssp.service.impl;

import com.graduate.base.entity.PageInfo;
import com.graduate.base.service.impl.BaseServiceImpl;
import com.graduate.bssp.dao.MainMapper;
import com.graduate.bssp.entity.Comic;
import com.graduate.bssp.entity.Main;
import com.graduate.bssp.service.IMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 电视剧 服务实现类
 * </p>
 *
 * @author yongqiangyao
 * @since 2018-02-05
 */
@Service("mainService")
public class MainServiceImpl extends BaseServiceImpl<MainMapper, Main> implements IMainService {
    @Autowired
    private MainMapper mainMapper;
    @Override
    public List<Main> selectMainList(PageInfo<Main> pageInfo){
        return mainMapper.selectMainList(pageInfo);
    }

    @Override
    public List<Main> selectTypeList(PageInfo<Main> pageInfo) {
        return mainMapper.selectTypeList(pageInfo);
    }
    @Override
    public Integer selectTypeCount(Main main) {
        return mainMapper.selectTypeCount(main);
    }
    @Override
    public Integer selectCountList(){
        return mainMapper.selectCountList();
    }
    @Override
    public List<Main> selectSearchList(PageInfo<Main> pageInfo){
        return mainMapper.selectSearchList(pageInfo);
    }
    @Override
    public Integer selectSearchCount(Main main){
        return mainMapper.selectSearchCount(main);
    }
}
